<template>
  <div class="home">
    <main>
      <router-view></router-view>
    </main>
    <footer>
      <router-link to="/home/page">
          <i class="iconfont icon-shouye"></i>
          <span>首页</span>
      </router-link>
      <router-link to="/home/list">
          <i class="iconfont icon-fangdajing"></i>
          <span>找房</span>
      </router-link>
      <router-link to="/home/profile">
          <i class="iconfont icon-wode"></i>
          <span>我的</span>
      </router-link>
    </footer>
  </div>
</template>

<script>
// 1rem=16px
export default {}
</script>

<style lang='scss' scoped>
.home {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  main {
    flex: 1;
    overflow-y: scroll;
  }
  footer {
    width: 100%;
    height: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-top: 1px solid #eee;
    a {
      font-size: 0.14rem;
      i {
        display: block;
        text-align: center;
      }
    }
  }
  .router-link-active {
    color: rgb(33, 185, 122);
  }
}
</style>